package scau.hotel.hotel_service.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BookVo {
    /**
     * 预定id
     */
    private Integer bookId;
    /**
     * 预定人姓名
     */
    private String cusName;
    /**
     * 预定人身份证
     */
    private String cusIdcard;
    /**
     * 预订人电话
     */
    private String cusTel;
    /**
     * 房型id
     */
    private Integer roomTypeId;
    /**
     * 预定房型数量
     */
    private Integer bookNum;
    /**
     * 预计入住时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd hh:mm:ss")
    private Date checkinDate;
    /**
     * 预计退房时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd hh:mm:ss")
    private Date checkoutDate;
    /**
     * 备注
     */
    private String remark;
}
